<?php
/**
 * 登陆状态检测
 */
function checklogin(){
    $username=session("username");
    $uid=session("uid");
    if(!$uid || !$username){
        return false;
    }else{
        return true;
    }
}
